const _key1 = 'token'
const _key2 = 'user'
const _key3 = 'openid'

function setToken(val){
	uni.setStorageSync(_key1, val)
}
function getToken(){
	return uni.getStorageSync(_key1)
}
function clearToken(val){
	uni.removeStorageSync(_key1, val)
}

function setUser(val){
	uni.setStorageSync(_key2, val)
}
function getUser(){
	return uni.getStorageSync(_key2)
}
function clearUser(val){
	uni.removeStorageSync(_key2, val)
}

function setOpenid(val){
	uni.setStorageSync(_key3, val)
}
function getOpenid(){
	return uni.getStorageSync(_key3)
}
function clearOpenid(val){
	uni.removeStorageSync(_key3, val)
}
export default {
	setToken,getToken,clearToken,
	setUser,getUser,clearUser,
	setOpenid,getOpenid,clearOpenid,
}